<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>增加员工信息页面</title>
    <link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.css" type="text/css">
    <script src="webjars/jquery/3.4.1/jquery.js"></script>
    <script src="webjars/bootstrap/3.3.5/js/bootstrap.js"></script>
    <style>
        form{
            margin-left: 12px;
        }
        input{
            /*font-size: 16px; !* 加大字体 *!*/
            /*padding: 12px 20px 12px 40px;*/
            /*border: 1px solid #ddd;*/
            /*margin-bottom: 10px;*/
            width: 200px ;
            height: 25px;
            background-color: #f0f8ff;
            margin-bottom: 5px;
        }
        textarea{
            width: 200px ;
            height: 30px;
            background-color: #f0f8ff;
            margin-bottom: 5px;
        }
        input:hover{
            border:2px #00ff00 solid;
        }
        .mandatory{
            color: red;
            margin-left: 6px;
        }
    </style>
</head>
<body>
    <legend>增加员工信息</legend>
    <form action="/addE" method="post">
        员工姓名：<input type="text" name="name" id="name" pattern="^[\u4e00-\u9fa5]{0,}$" required><br>
        员工性别：<input type="text" name="sex" id="sex" list="sts"><br>
        <datalist id="sts" style="display:none;">
            <option value="男">男</option>
            <option value="女">女</option>
        </datalist>
        员工年龄：<input type="date" name="age" id="age" required><br>
        员工号码：<input type="text" name="emnumber" id="emnumber" required><br>
        员工类别：<input type="text" name="type" id="type" required list="ty"><br>
        <datalist id="ty" style="display:none;">
            <option value="医生">医生</option>
            <option value="护工">护工</option>
            <option value="健康管家">健康管家</option>
            <option value="操作员">操作员</option>
            <option value="技术">技术</option>
            <option value="护士">护士</option>
        </datalist>
        入职时间：<input type="date" name="entrytime" id="entrytime" required><br>
        操作的人：<input type="text" name="operator" id="operator" required><br>
        操作时间：<input type="date" name="optime" id="optime" required><br>
        员工职务：<input type="text" name="position" id="position"><br>
        员工职称：<input type="text" name="jobtitle" id="jobtitle"><br>
        人员状态：<input type="text" name="status" id="status" required list="lst"><br>
        <datalist id="lst" style="display:none;">
            <option value="在职">在职</option>
            <option value="离职">离职</option>
        </datalist>
        员工简介：
<!--        <input type="text" name="introduction" id="introduction"><br>-->
        <textarea name="introduction" id="introduction" placeholder="请输入简介"></textarea><br>
        员工备注：
<!--        <input type="text" name="remarks" id="remarks"><br>-->
        <textarea name="remarks" id="remarks" placeholder="请输入备注"></textarea><br>
        <!--添加隐藏域-->
        <input type="hidden" name="_method" value="put">
        <button>提交添加</button>
        <button type="button" onclick="history.go(-1)">返回</button>
    </form>
    <script>
        $('[required]').after('<span class="mandatory">*</span>');
    </script>
</body>
</html>